#pragma once
#include <vector>

// recv_file_lst_ctrl

class recv_file_lst_ctrl : public CListCtrl
{
	DECLARE_DYNAMIC(recv_file_lst_ctrl)

public:
	recv_file_lst_ctrl();
	virtual ~recv_file_lst_ctrl();

protected:
	DECLARE_MESSAGE_MAP()
	afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
public:
	std::vector<HICON> icon_lst_;

	afx_msg BOOL OnEraseBkgnd(CDC* pDC);

	void add_icon(HICON ico)
	{
		this->icon_lst_.push_back(ico);
	}

	void clear_list();
	void delte_item(int indx);

	HICON default_ico_;
};


